{% extends "base2.html" %}
 
{% block content %}
    <h1>Be a proud member of our super site</h1>
 
    <form action="" method="post">
    {% csrf_token %}
        <div>
            {{ form.username.errors }}
            <label for="id_username">Username: </label>
            {{ form.username }}
        </div>
        <div>
            {{ form.email.errors }}
            <label for="id_email">E-Mail: </label>
            {{ form.email }}
        </div>
        <div>
            {{ form.password1.errors }}
            <label for="id_password1">Password: </label>
            {{ form.password1 }}
        </div>
        <div>
            {{ form.password2.errors }}
            <label for="id_password2">Repeat password: </label>
            {{ form.password2 }}
        </div>
        
        <div>
            <label for="is_institution">Are you an institution? </label>
            <input type="checkbox" name="institution" {{ institution_checked | safe }} />
        </div>
        
        <input type="submit" value="Register" />
    </form>
{% endblock %}